package xyz.jcat.biz.stock;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.Bean;
import xyz.jcat.biz.service.common.AuthWebMvcConfig;
import xyz.jcat.common.Const;

@EnableDiscoveryClient
@MapperScan(basePackages = "xyz.jcat.biz.stock.domain.dao")
@SpringBootApplication(scanBasePackages = Const.SCAN_BASE_PACKAGE)
public class BizStockApplication {

    public static void main(String[] args) {
        SpringApplication.run(BizStockApplication.class, args);
    }

    @Bean
    public AuthWebMvcConfig authWebMvcConfig() {
        return new AuthWebMvcConfig();
    }
}
